const express = require('express');
const router = express.Router();
const categoryHandle = require('../routerHandler/categoryRouterHandler');

// 查询分类
router.get('/list', categoryHandle.categorySelect);
// 添加分类
router.post('/_token/add', categoryHandle.categoryAdd);
// 修改分类
router.put('/_token/update', categoryHandle.categoryUpdate);
// 删除分类
router.delete('/_token/del', categoryHandle.categoryDelete);


module.exports = router;